﻿#ifndef OPENFILE_H
#define OPENFILE_H

#include <QWidget>
#include <QProxyStyle>
#include <QPainter>
#include <QStyleOptionTab>
#include "uploadfile.h"
#include "ui_uploadfile.h"
#include "dialogFileManager.h"

namespace Ui {
class openfile;
}

class openfile : public QWidget
{
    Q_OBJECT

public:
    explicit openfile(QWidget *parent = nullptr);
    ~openfile();

private slots:
    void on_SaveBtn_clicked();

    void on_returnBtn_clicked();

signals:
    void changeSampleWindow();
    void changeAnalyWindow(QString filename = "");
    void changeMainWindow();
    void changeUploadWindow();

private:
    Ui::openfile *ui;
    UploadFile *uploadfileui;

};
//自定义tabbar的样式
class CustomTabStylenew:public QProxyStyle{
public:
    CustomTabStylenew(){}
    QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const;
    void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const;
};
#endif // OPENFILE_H
